Skip to content

Conversation

@mjohanse-emr
Copy link
Contributor

@mjohanse-emr mjohanse-emr commented Jun 20, 2025

What does this Pull Request accomplish?

Creates a separate method _get_best_matching_type() that contains the unchanged logic to determine the type string to use when indexing into the _CONVERTER_FOR_PYTHON_TYPE set. No functionality has changed here.

I also added a unit test for this new method.

Why should this Pull Request be merged?

I expect to be making changes to this python type inspection logic when working on converting to Double2DArray protobuf objects. These changes will allow for nested containers. I would like the logic I plan to change to be in a separate method with unit tests so I know I'm not breaking anything, and also so I can make faster iterations during development.

Related to AB#3166107

What testing has been done?

Unit tests, mypy, styleguide.

@github-actions
Copy link
Contributor

Test Results

   10 files  ±  0     10 suites  ±0   17s ⏱️ ±0s
  146 tests + 30    146 ✅ + 30  0 💤 ±0  0 ❌ ±0 
1 430 runs  +300  1 430 ✅ +300  0 💤 ±0  0 ❌ ±0 

Results for commit 28a5e3a. ± Comparison against base commit 58bd0c3.

@mjohanse-emr mjohanse-emr merged commit f11d190 into main Jun 20, 2025
14 checks passed
@mjohanse-emr mjohanse-emr deleted the users/mjohanse/nipanel_refactor branch June 20, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants